<?
require("configuration.php");
require("configClient.php");
$configClient = new ConfigClient();
?>
<style>
	.required{
		color:red;
	}
</style>
<script language="JavaScript">
function hideForm(id){
	$('#form_'+id).parent().hide();
	$('#minimize_a_'+id).removeAttr("title");
	$('#minimize_a_'+id).attr("title","แสดง");
	$('#minimize_a_'+id).removeAttr("href");
	$('#minimize_a_'+id).attr("href","javascript:showForm('"+id+"')");
	$('#minimize_i_'+id).removeAttr('class');
	$('#minimize_i_'+id).attr('class','icon-chevron-down');
}

function showForm(id){
	$('#form_'+id).parent().show();
	$('#minimize_a_'+id).removeAttr("title");
	$('#minimize_a_'+id).attr("title","ซ่อน");
	$('#minimize_a_'+id).removeAttr("href");
	$('#minimize_a_'+id).attr("href","javascript:hideForm('"+id+"')");
	$('#minimize_i_'+id).removeAttr('class');
	$('#minimize_i_'+id).attr('class','icon-chevron-up');
}

function loadTab(tab,clss,func){
		$.ajax({
					type:"POST",
                    url: "ajaxLoadPage.php?class="+clss+"&function="+func,
                    data:"tab="+tab,
                    success: function(data2) {
						if(data2 == "error1"){
							$('body').html('<?=$config->errorLoadPage?>');
						}else{											
							$('div[id="content"]').html(data2);											
						}
                    }
        });
}
</script>
<?php include('header.php'); ?>	  
       
<?php include('footer.php'); ?>
<div id="errorMessage"></div>
